import request from '@/utils/request'

// 查询分享记录列表
export function list(query) {
  return request({
    url: '/archives/share/list',
    method: 'get',
    params: query
  })
}

// 查询分享记录详细
export function get(shareId) {
  return request({
    url: '/archives/share/' + shareId,
    method: 'get'
  })
}

// 新增分享记录
export function add(data) {
  return request({
    url: '/archives/share',
    method: 'post',
    data: data
  })
}

// 修改分享记录
export function update(data) {
  return request({
    url: '/archives/share',
    method: 'put',
    data: data
  })
}

// 删除分享记录
export function del(shareId) {
  return request({
    url: '/archives/share/' + shareId,
    method: 'delete'
  })
}
